package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.system.domain.WarehouseShelfRatio;
import com.ruoyi.system.mapper.WarehouseShelfRatioMapper;
import com.ruoyi.system.service.WarehouseShelfRatioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 库房上架占比Service实现类
 *
 * @author admin
 * @date 2025-08-23
 */
@Service
public class WarehouseShelfRatioServiceImpl implements WarehouseShelfRatioService {
    @Autowired
    private WarehouseShelfRatioMapper warehouseShelfRatioMapper;

    @Override
    public WarehouseShelfRatio selectWarehouseShelfRatioById(Long id) {
        return warehouseShelfRatioMapper.selectWarehouseShelfRatioById(id);
    }

    @Override
    public List<WarehouseShelfRatio> selectWarehouseShelfRatioList(WarehouseShelfRatio warehouseShelfRatio) {
        return warehouseShelfRatioMapper.selectWarehouseShelfRatioList(warehouseShelfRatio);
    }

    @Override
    public int insertWarehouseShelfRatio(WarehouseShelfRatio warehouseShelfRatio) {
        return warehouseShelfRatioMapper.insertWarehouseShelfRatio(warehouseShelfRatio);
    }

    @Override
    public List<Map<String, Object>> selectListByName(WarehouseShelfRatio warehouseShelfRatio) {
        return warehouseShelfRatioMapper.selectListByName(warehouseShelfRatio);
    }

    @Override
    public int updateWarehouseShelfRatio(WarehouseShelfRatio warehouseShelfRatio) {
        return warehouseShelfRatioMapper.updateWarehouseShelfRatio(warehouseShelfRatio);
    }

    @Override
    public int deleteWarehouseShelfRatioById(Long id) {
        return warehouseShelfRatioMapper.deleteWarehouseShelfRatioById(id);
    }

    @Override
    public int deleteWarehouseShelfRatioByIds(Long[] ids) {
        return warehouseShelfRatioMapper.deleteWarehouseShelfRatioByIds(ids);
    }
}